<template>
	<view>
	<u-popup :show="true" mode="center" bgColor="transparent" :overlayStyle="{background: 'rgba(240, 241, 243, 1)'}" :customStyle="{width:'80%'}">
		<view class="popup-content">
			{{ content }}
		</view>
		<view class="popup-buttons">
			<view class="confirm"  @click="onConfirm">是</view>
			<view class="cancel" @click="onCancel">否</view>
		</view>
	</u-popup>
	</view>
</template>

<script>
	export default {
		props:{
			content:{
				type:String,
				default(){
					return ''
				}
			}
		},
		data() {
			return {
				
			}
		},
		methods: {
			onConfirm(){
				this.$emit('onConfirm')
			},
			onCancel(){
				this.$emit('onCancel')
			},
		}
	}
</script>

<style scoped lang="scss">
	.popup-content{
		color:#636eb6
	}
	.popup-buttons{
		display: flex;
		justify-content: space-between;
		width:60%;
		margin:0 auto;
		margin-top:60rpx;
		view{
			background-color: #636eb6;
			width:80rpx;
			height:80rpx;
			color:#fff;
			text-align: center;
			line-height: 80rpx;
			border-radius:50%;
		}
	}
</style>
